package com.mrd.gtimp.service.dto;

import java.io.Serializable;

/**
 * <p>
 * application name: sample
 * <p>
 * copyright: Copyright@2012 明睿达科技有限公司
 */
/**
 * @author qiul
 */
public class SearchRule implements Serializable {

	private static final long	serialVersionUID	= 860680601001739942L;

	private String	          field;

	private SearchRuleOption	op;

	private Object	          data;

	public SearchRule() {}

	/**
	 * @param field
	 *            字段名
	 * @param op
	 *            操作类型
	 * @param data
	 *            数据
	 */
	public SearchRule(String field, SearchRuleOption op, Object data) {
		super();
		this.field = field;
		this.op = op;
		this.data = data;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public SearchRuleOption getOp() {
		return op;
	}

	public void setOp(SearchRuleOption op) {
		this.op = op;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "SearchRule [field=" + field + ", op=" + op + ", data=" + data + "]";
	}
}
